package com.hakim.wfb.biz;

import com.hakim.wfb.bean.CreditPoint;
import com.hakim.wfb.dao.CreditPointDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/6/30.
 */
@Service("creditPointBiz")
public class CreditPointBiz {

    @Autowired
    private CreditPointDao creditPointDao;

    public CreditPoint getCreditPointById(String id) {
        return creditPointDao.getById(id);
    }

    public CreditPoint getCreditPoint(String userId) {
        return creditPointDao.getById(userId);
    }

    public int update(CreditPoint creditPoint) {
        return creditPointDao.update(creditPoint);
    }
}
